<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
define('IN_ECS', true);
require('../includes/init.php');
$fmuid = $_SESSION['user_id'];
$sql = "SELECT * FROM `fmmaked` WHERE uid='".$fmuid."'";
//$data1 = $dsql->fmSelect($sqla);
$row = $GLOBALS['db']->getAll($sql);
$info = '';
foreach($row as $d){
    $info .= '<image imageURL="'.$d['url'].'" thumbURL="'.$d['thumb'].'" linkURL="" linkTarget="" >
	            <caption></caption>	
             </image>';
}
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<simpleviewergallery	
	galleryStyle="MODERN"
	title="全部作品"
	textColor="FFFFFF"
	frameColor="FFFFFF"
	frameWidth="20"
	thumbPosition="LEFT"
	thumbColumns="3"
	thumbRows="3"
	showOpenButton="FALSE"
	showFullscreenButton="TRUE"	
	maxImageWidth="640"
	maxImageHeight="640"
	useFlickr="false"
	flickrUserName=""
	flickrTags=""
	languageCode="AUTO"
	languageList=""		
	imagePath="../uploads/maked/'.$fmuid.'/images/"
	thumbPath="../uploads/maked/'.$fmuid.'/thumbs/"
>'.$info."</simpleviewergallery>";
echo $xml;
?>
